//
//  WBHomeViewController.swift
//  AdaoWeibo
//
//  Created by 孙道慧 on 2017/3/31.
//  Copyright © 2017年 maihaoche. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
                
    }
    
    // 好友
    func friendAction() {
        print("显示好友")
        let demoVc = WBDemoViewController()
        navigationController?.pushViewController(demoVc, animated: true)
    }
}

extension WBHomeViewController {
    // 设置UI
    // 重写父类方法
    override func setUpUI() {
        super.setUpUI()
        // 设置导航栏
        // navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", style: .plain, target: self, action: #selector(friendAction))
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", target: self, action: #selector(friendAction))
    }
}
